import React from 'react'
import List from './components/List'
export default class App extends React.Component {
  state = {
    list1: [1, 2, 3],
    list2: ['a', 'b', 'c'],
  }
  render() {
    return (
      <div id="app">
        {/* 这是用props技术,传递数据 */}
        <List xxx={this.state.list1}></List>
        <hr />
        <List xxx={this.state.list2}></List>
      </div>
    )
  }
}
